package com.zhilianbao.leyaogo.ui.activity.goodscategory;

import android.content.Intent;
import android.os.Bundle;

import com.bql.convenientlog.CLog;
import com.zhilianbao.leyaogo.R;
import com.zhilianbao.leyaogo.ui.activity.base.BaseOkHttpActivity;
import com.zhilianbao.leyaogo.ui.fragment.goodscategory.GoodsFragment;

/**
 * 商品详情页面
 * Created by gyt on 2016/11/2
 */
public class GoodsActivity extends BaseOkHttpActivity {
    @Override
    protected int getContentViewLayoutID() {
        return R.layout.activity_goods_details;
    }

    @Override
    protected void initViewsAndEvents(Bundle savedInstanceState) {
        Intent intent = getIntent();
        CLog.i("initViewsAndEvents==========");
        if (intent != null) {
            Bundle goodsInfo = intent.getExtras();
            loadRootFragment(R.id.fl_container, GoodsFragment.getInstance(goodsInfo));
        }
    }

    @Override
    protected boolean toggleOverridePendingTransition() {
        return false;
    }

    @Override
    protected TransitionMode getOverridePendingTransitionMode() {
        return TransitionMode.RIGHT;
    }


}
